package com.oig.sys.base.tax.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "govOnlineTariff", name = "govOnlineTariff", url = "${gov.online.tariff.url}")
public interface GovGoodsTariffClient {

    //查hscode主税率信息  data {"gName":"","codeTs":"0206490000","sysDate":"2024-05-20","nextPage":"1","pageSize":"10"}
    @GetMapping(value = "/queryImpTariffRate.asmx")
    String queryGoodsTariffRate(@RequestParam("data") String data);

    //获取增值税,消费税 data {"codeTs":"0206490000","sysDate":"2024-05-20"}
    @GetMapping(value = "/queryTaxRate.asmx")
    String queryGoodsVatRate(@RequestParam("data") String data);

    //查所有协定税率  data {"codeTs":"0206490000","sysDate":"2024-05-20"}
    @GetMapping(value = "/queryAgreementRate.asmx")
    String queryTariffAgreement(@RequestParam("data") String data);

    //查协定对应国家，data {"codeTs":"0207142200","sysDate":"2024-05-20","agreementCode":"2"}   agreementCode是协定代码上个接口返回
    @GetMapping(value = "/queryCountryAgreementRate.asmx")
    String queryAgreementCountry(@RequestParam("data") String data);

}
